package com.example.hackotontest.dto;

import java.io.Serializable;

/**
 * DTO Used to send the participant name, ip address of the connected participant and the port
 *
 */
public class SocketDto implements Serializable{
	
	private String participantName;
	private String ipAddress;
	private int port;
	
	public SocketDto(String participantName, String ipAddress, int port) {
		this.participantName = participantName;
		this.ipAddress = ipAddress;
		this.port = port;
	}

	public String getParticipantName() {
		return participantName;
	}
	
	public String getIpAddress() {
		return ipAddress;
	}

	public int getPort() {
		return port;
	}
	
	@Override
	public String toString() {
		return "SocketDto [participantName=" + participantName + ", ipAddress="
				+ ipAddress + ", port=" + port + "]";
	}
}